﻿using OutlookContactsSync.Repository;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using OutlookContactsSync.Domain.Model;
using System.Collections.Generic;

namespace OutlookContactsSync.Test
{
    
    
    /// <summary>
    ///This is a test class for OutlookRepositoryTest and is intended
    ///to contain all OutlookRepositoryTest Unit Tests
    ///</summary>
    [TestClass()]
    public class OutlookRepositoryTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for OutlookRepository Constructor
        ///</summary>
        [TestMethod()]
        public void OutlookRepositoryConstructorTest()
        {
            OutlookRepository target = new OutlookRepository();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for AddOutLookUsers
        ///</summary>
        [TestMethod()]
        public void AddOutLookUsersTest()
        {
            OutlookRepository target = new OutlookRepository(); // TODO: Initialize to an appropriate value
            List<Contact> outlookUsers = null; // TODO: Initialize to an appropriate value
            List<Contact> domainUsers = null; // TODO: Initialize to an appropriate value
            //target.AddOutLookUsers(outlookUsers, domainUsers, TODO);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for AddPhoto
        ///</summary>
        [TestMethod()]
        [DeploymentItem("OutlookContactsSync.Repository.dll")]
        public void AddPhotoTest()
        {
            string alias = string.Empty; // TODO: Initialize to an appropriate value
            byte[] data = null; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = OutlookRepository_Accessor.AddPhoto(alias, data);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DeletePhoto
        ///</summary>
        [TestMethod()]
        [DeploymentItem("OutlookContactsSync.Repository.dll")]
        public void DeletePhotoTest()
        {
            string filename = string.Empty; // TODO: Initialize to an appropriate value
            OutlookRepository_Accessor.DeletePhoto(filename);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for GetOutlookUsers
        ///</summary>
        [TestMethod()]
        public void GetOutlookUsersTest()
        {
            OutlookRepository target = new OutlookRepository(); // TODO: Initialize to an appropriate value
            List<Contact> expected = null; // TODO: Initialize to an appropriate value
            List<Contact> actual;
            //actual = target.GetOutlookUsers(TODO);
            //Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for RemoveOutlookUsers
        ///</summary>
        [TestMethod()]
        public void RemoveOutlookUsersTest()
        {
            OutlookRepository target = new OutlookRepository(); // TODO: Initialize to an appropriate value
            List<Contact> outlookUsers = null; // TODO: Initialize to an appropriate value
            List<Contact> domainUsers = null; // TODO: Initialize to an appropriate value
            //target.RemoveOutlookUsers(outlookUsers, domainUsers, TODO);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for UpdateOutlookUsers
        ///</summary>
        [TestMethod()]
        public void UpdateOutlookUsersTest()
        {
            OutlookRepository target = new OutlookRepository(); // TODO: Initialize to an appropriate value
            List<Contact> outlookUsers = null; // TODO: Initialize to an appropriate value
            List<Contact> domainUsers = null; // TODO: Initialize to an appropriate value
            //target.UpdateOutlookUsers(outlookUsers, domainUsers, TODO);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
    }
}
